Normal Proofs and Their Grammar
نویسندگان
چکیده
We present grammatical (or equational) descriptions of the set of normal inhabitants fM j ` M : A; M in -normal form g of a given type A under a given basis , both for the standard simple type system (in partial discharge convention) and for the system in total discharge convention (or Prawitz-style natural deduction system). It is shown that in the latter system we can describe the set by a ( nite) context-free grammar, but for the standard system it is not necessarily the case because we may need an in nite supply of fresh (bound) variables to describe the set. In both cases, however, our grammars re ect the structure of normal inhabitants in such a way that, when non-terminals are ignored, a derivation tree of the grammars yielding a -term M can be identi ed with the Bohm tree of M . We give some applications of the grammatical descriptions. Among others, we give simple algorithms for the emptyness/ niteness problem of the set of normal inhabitants of a given type (both for the standard and nonstandard systems).
منابع مشابه
Enumerating Proofs of Positive Formulae
We provide a semi-grammatical description of the set of normal proofs of positive formulae in minimal predicate logic, i.e. a grammar that generates a set of schemes, from each of which we can produce a finite number of normal proofs. This method is complete in the sense that each normal proof-term of the formula is produced by some scheme generated by the grammar. As a corollary, we get a simi...
متن کاملNormal Form Theorem Proving for the Lambek Calculus
The possibility of multiple equivalent proofs presents a problem for efficient parsing of a number of flexible categorial grammar (CG) frameworks. In this paper I outline a normal form system for a sequent formulation of the product-free associative Lambek Calculus. This le,'~ls to a simple parsing approach that yields only normal form proofs. This approach is both ~afe in that all distinct rea...
متن کاملA Formalisation of the Normal Forms of Context-Free Grammars in HOL4
We describe the formalisation of the Chomsky and Greibach normal forms for context-free grammars (CFGs) using the HOL4 theorem prover. We discuss the varying degrees to which proofs that are straightforward on pen and paper, turn out to be much harder to mechanise. While both proofs are of similar length in their informal presentations, the mechanised proofs for Greibach normal form blow-up con...
متن کاملA formalisation of the Cocke-Younger-Kasami algorithm
The theory provides a formalisation of the Cocke-Younger-Kasami algorithm [1] (CYK for short), an approach to solving the word problem for context-free languages. CYK decides if a word is in the languages generated by a context-free grammar in Chomsky normal form. The formalized algorithm is executable.
متن کاملLambek Calculus Proofs and Tree Automata
We investigate natural deduction proofs of the Lambek calculus from the point of view of tree automata. The main result is that the set of proofs of the Lambek calculus cannot be accepted by a finite tree automaton. The proof is extended to cover the proofs used by grammars based on the Lambek calculus, which typically use only a subset of the set of all proofs. While Lambek grammars can assign...
متن کاملCounting the Number of Proofs in the Commutative Lambek Calculus
This paper is concerned with the study of the number of proofs of a sequent in the commutative Lambek calculus. We show that in order to count how many different proofs in βη-normal form a given sequent Γ ` α has, it suffices to enumerate all the ∆ ` β which are “minimal”, such that Γ ` α is a substitution instance of ∆ ` β. As a corollary we obtain van Benthem’s finiteness theorem for the Lamb...
متن کامل